﻿<!-- 
News Framework
(C) Tanzim Saqib. Oct 25, 2010.
http://TanzimSaqib.com | http://newsfx.codeplex.com
-->
    
<phone:PhoneApplicationPage 
    x:Class="TanzimSaqib.NewsFramework.RssView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:fx="clr-namespace:TanzimSaqib.NewsFramework" 
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    fx:Command.Attach="Loaded=RssView_Loaded"
    Background="{Binding BackgroundImageSource}"
    shell:SystemTray.IsVisible="True">

    <UserControl.DataContext>
        <fx:RssViewModel />
    </UserControl.DataContext>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="{Binding BackgroundImageSource}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,0,0,0" Orientation="Horizontal">
            <Image x:Name="icon" Source="/ApplicationIcon.png" Height="25" Width="25" Margin="0,0,2,0"/>
            <TextBlock Text="{Binding PageTitle}" Style="{StaticResource PhoneTextNormalStyle}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="2" Margin="12,0,12,0">
            <TextBlock Grid.Row="0" Text="Loading.." Visibility="{Binding LoadingTextVisibility}" FontFamily="Segoe WP Bold" FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <phone:WebBrowser Grid.Row="1" fx:Command.Attach="Loaded=browser_Loaded" Visibility="Collapsed" IsScriptEnabled="True" />
        </Grid>
    </Grid>

    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsMenuEnabled="True" IsVisible="False" Opacity="1" />
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
